<template>
  <div>
    <loading v-if="!this.content"></loading>
    <div v-html="content"></div>
  </div>
</template>

<script>
import Loading from '@/components/Loading.vue'
export default {
  data() {
    return {
      content: "",
    };
  },
  components:{
    Loading
  },
  async created() {
    // 创建时设置设置底部导航栏的显示与否
    this.$store.state.footerShow = false;
    let res = await this.$axios("/seatSell/News");
    this.content = res.data.data.data.content;
  },
  beforeDestroy(){
    // 销毁之前将其底部导航栏的值设置为true
    this.$store.state.footerShow = true;
  }
};
</script>

<style>
</style>